use std::fs;
use std::path::Path;
fn main() {
    let str = "D:\\SteamLibrary";
    println!("盘符信息：{}", str);
    let path = Path::new(str);
    if let Ok(metadata) = fs::metadata(path){
        println!("文件类型: {:?}", metadata.file_type());
        println!("文件大小: {} bytes", metadata.len());
        println!("最后修改时间: {:?}", metadata.modified());
        println!("最后访问时间: {:?}", metadata.accessed());
        println!("创建时间: {:?}", metadata.created());
        println!("权限: {:?}", metadata.permissions());
        println!("是否是目录: {}", metadata.is_dir());
        println!("是否是文件: {}", metadata.is_file());
        println!("是否是符号链接: {}", metadata.is_symlink());

    }
    println!("Hello, world!");
}
